#!/usr/bin/env node

var program = require('commander')

program
    .version('0.0.1')
    .option('-p --people <people>', 'stress people number')
    .option('-l --level [level]', 'stress level [default 3]', 3)
    .option('-f --friendly', 'stress level [default 3]')
    .option('--interval_time [time]', 'interval time', 60);

program.parse(process.argv);
program.on('--help', () => {
    console.log();
    console.log('  Example:');
    console.log();
    console.log('    node progress -h');
});

if (!process.argv[2]) {
    program.help();
}

if (program.people) {
    console.log(program.people);
}

console.log(program.level);

console.log(program.interval_time);
console.log('friendly', program.friendly);
